// 工作台
import request from '@/config/axios'
// 
export const findAddressList = () => {
  return request.get({ url: '/api/enterprise/positionRegistration/findAddressList' })
}
// 获取所有字典
export const getResumeList = () => {
  return request.get({ url: '/api/enterprise/resume/list' })
}
// 获取表头
export const positionRegistration = () => {
  return request.get({ url: '/api/enterprise/positionRegistration/header' })
}
// 获取list
export const positionRegistrationList = (params) => {
  return request.get({ url: '/api/enterprise/positionRegistration/list',params:params })
}
// 获取职位详细信息
export const positionRegistrationDetail = (params) => {
  return request.get({ url: '/api/enterprise/positionRegistration/'+params})
}

// 初筛通过
export const firstPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/firstPass',data:params })
}
// 初筛未通过
export const firstNotPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/firstNotPass',data:params })
}
// 应聘部门通过
export const departmentPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/departmentPass',data:params })
}
// 应聘部门未通过
export const departmentNotPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/departmentNotPass',data:params })
}
// 笔试通过
export const writtenExaminationPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/writtenExaminationPass',data:params })
}
// 笔试未通过
export const writtenExaminationNotPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/writtenExaminationNotPass',data:params })
}
// 发送笔试通知
export const sendWrittenExaminationNotice = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/sendWrittenExaminationNotice?time='+params.time+'&location='+params.location+'&notice='+params.notice,data:params.param })
}
// 导入笔试简历
export const importWrittenExaminationScore = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/importWrittenExaminationScore?passingGrade='+params.passingGrade+"&recruitmentPositionId="+params.recruitmentPositionId,data:params.param ,headersType:"multipart/form-data;"})
}
// 导入面试分数
export const importInterviewExaminationScore = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/importInterviewExaminationScore?passingGrade='+params.passingGrade+"&recruitmentPositionId="+params.recruitmentPositionId,data:params.param ,headersType:"multipart/form-data;"})
}

// 面试通过
export const interviewPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/interviewPass',data:params })
}
// 面试未通过
export const interviewNotPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/interviewNotPass',data:params })
}
//面试邀约
export const sendInterviewNotice = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/sendInterviewNotice?time='+params.time+'&location='+params.location+'&notice='+params.notice+"&interviewRound="+params.interviewRound,data:params.param  })
}
// 放弃面试
export const giveUpInterview = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/giveUpInterview',data:params })
}
// 背景调查通过
export const backgroundInvestigationPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/backgroundInvestigationPass',data:params })
}
// 背景调查不通过
export const backgroundInvestigationNotPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/backgroundInvestigationNotPass',data:params })
}
// 体检通过
export const physicalExaminationPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/physicalExaminationPass',data:params })
}
// 体检不通过
export const physicalExaminationNotPass = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/physicalExaminationNotPass',data:params })
}
// 体检通知
export const sendPhysicalExaminationNotice = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/sendPhysicalExaminationNotice?time='+params.time+'&notice='+params.notice,data:params.param})
}
// 公示公告
export const companyAnnouncement = (params) => {
  return request.post({ url: '/api/enterprise/companyAnnouncement',data:params })
}
// 录用通知
export const sendEmploymentNotice = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/sendEmploymentNotice?time='+params.time+'&location='+params.location+'&notice='+params.notice,data:params.param})
}
// 修改录用通知
export const sendEntryNotice = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/sendEntryNotice?time='+params.time+'&location='+params.location+'&notice='+params.notice,data:params.param })
}
// 确认录用
export const confirmEmployment = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/confirmEmployment',data:params })
}
// 放弃录用
export const giveUpEmployment = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/giveUpEmployment',data:params })
}
// 确认入职
export const confirmEntry = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/confirmEntry',data:params })
}
// 放弃入职
export const giveUpEntry = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/giveUpEntry?content='+params.content,data:params.param })
}
// 添加反馈
export const addFeedback = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/addFeedback',data:params})
}
// 下载简历
export const downloadWrittenExaminationScoreTemplate = () => {
  return request.get({ url: '/api/enterprise/registrationLog/downloadWrittenExaminationScoreTemplate'})
}

// 人才库重新进入初筛
export const reFirstScreen = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/reFirstScreen',data:params })
}
// 人才库删除简历
export const deleteResume = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/deleteResume',data:params })
}
// 修改黑名单
export const updateBackList = (params) => {
  return request.put({ url: '/api/enterprise/positionRegistration/updateBackList',data:params })
}
// 消息
export const noticeList = (params) => {
  return request.get({ url: '/api/enterprise/notice/list',params:params })
}

// 批量下载简历
export const exportResume = (params) => {
  return request.get({ url: '/api/enterprise/positionRegistration/exportResume',params:params,responseType:"blob" })
}

// 查询报名表详细信息
export const formTemplate = (params) => {
  return request.get({ url: '/api/enterprise/form/'+params })
}

// 面试简历发送
export const sendResumeEmail = (params) => {
  return request.get({ url: '/api/enterprise/positionRegistration/sendResumeEmail',params:params })
}
// 投递职位全部
export const registrationLog = (params) => {
  return request.get({ url: '/api/enterprise/registrationLog/ListAll',params:params})
}
// 回退流程
export const registrationLogBack = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/back',data:params })
}

//发送短信
export const sendNotice = (params) => {
  return request.post({ url: '/api/enterprise/registrationLog/sendNotice',data:params })
}

//更新时间
export const positionRegistrations = (params) => {
  return request.put({ url: '/api/enterprise/positionRegistration',data:params })
}

// 反馈时间/enterprise/feedback
export const feedback = (params) => {
  return request.post({ url: '/api/enterprise/feedback',data:params })
}
